package com.yanqu.road.server.cmd.cookboy.process2;

import com.yanqu.road.message.YanQuMessage;
import com.yanqu.road.pb.cookboy.CookBoyProto;
import com.yanqu.road.server.cmd.CrossCommand;
import com.yanqu.road.server.command.Cmd;
import com.yanqu.road.server.manager.cookboy.CrossCookBoyMgr;
import com.yanqu.road.server.protocol.Protocol;

@Cmd(code = Protocol.C_CROSS_COOK_BOY2_SYNC_JOIN_RECORD, desc = "活动同步参宴记录")
public class CrossCookBoy2JoinDataSyncCmd extends CrossCommand {

    @Override
    public boolean parseData(YanQuMessage packet) throws Exception {
        return true;
    }

    @Override
    public void execute(YanQuMessage packet) throws Exception {

        CookBoyProto.CrossCookBoy2JoinDataSync sync = CookBoyProto.CrossCookBoy2JoinDataSync.parseFrom(packet.getBytes());
        CrossCookBoyMgr.syncJoinDataFromOtherActivity(sync.getActivityId(), sync.getHomeUserId(), sync.getJoinUserId(), sync.getOtherActivityId());

    }

    @Override
    public void sendData() {

    }
}
